package com.yunxi.model.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author 
 * @since 2019-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("sys_dict")
@ApiModel(value="Dict对象", description="字典表")
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "DICT_ID", type = IdType.UUID)
    private String dictId;

    @ApiModelProperty(value = "值")
    @TableField("DICT_KEY")
    private String dictKey;

    @ApiModelProperty(value = "名称")
    @TableField("DICT_VALUE")
    private String dictValue;

    @ApiModelProperty(value = "父id")
    @TableField("PID")
    private String pid;

    @ApiModelProperty(value = "排序")
    @TableField("SORT_NO")
    private Integer sortNo;

    @ApiModelProperty(value = "级别")
    @TableField("LV")
    private Integer lv;

    @ApiModelProperty(value = "根id")
    @TableField("RID")
    private String rid;

    @TableField("NUM_CODE")
    private String numCode;

    @TableField("SIMPLE_CODE")
    private String simpleCode;

    @TableField("EN_CODE")
    private String enCode;

    @TableField("STATE")
    private Integer state;

    @TableField("TENANT_ID")
    private String tenantId;

    private Integer source;

    private transient List<Dict> dictlist = new ArrayList<Dict>();
}
